<?php

class Bootstrap extends Ext_Application_Bootstrap_Bootstrap
{
    protected function _initAutoload()
    {
        $moduleAutoloader = new Zend_Application_Module_Autoloader(array(
            'namespace' => '',
            'basePath'  => realpath(dirname(__FILE__)),
        ));
    }

    protected function _initPlugins()
    {
        $frontController = Zend_Controller_Front::getInstance();

        $frontController
            ->registerPlugin(new Plugin_Loader())
            ->registerPlugin(new Ext_Controller_Plugin_Layout())
            ->registerPlugin(new Ext_Controller_Plugin_ContextAction())
            ->registerPlugin(new Ext_Controller_Plugin_ErrorHandler())
            ->registerPlugin(new Ext_Controller_Plugin_Acl())
            ->registerPlugin(new Ext_Controller_Plugin_Navigation())
        ;
    }

    protected function _initRegistry()
    {
        Zend_Registry::set('config', new Zend_Config($this->getOptions(), true));
    }
}